﻿<UserControl x:Class="SilverlightChartDisplay.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    Width="600" Height="300" Background="Transparent" Opacity="1" HorizontalAlignment="Center" VerticalAlignment="Center">

    <Grid Width="600" Height="300" x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="1"
          >
        <charting:Chart x:Name="chart" Width="600" Height="300" Background="Transparent" Opacity="0.7"
                               BorderBrush="Indigo">
            <charting:Chart.Series>
                <charting:LineSeries ItemsSource="{Binding}" Background="Transparent"
                    DependentValuePath="Value" 
                    IndependentValuePath="Key"
                    Title="Price" 
                    IsSelectionEnabled="True"
                    AnimationSequence="FirstToLast"
                    TransitionDuration="5"/>
            </charting:Chart.Series>
        </charting:Chart>
    </Grid>
</UserControl>
